<template>
    <div class="info-bar">
        <div class="infobar-item"><span>@Tyrone</span></div>
        <div class="infobar-item"><span>这是一个描述</span></div>
        <div class="infobar-item music-item">
            <span class="iconfont icon-yinfu"></span>
            <div class="music-name">
                <span data-text="Tyrone">Tyrone</span>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    
}
</script>
<style scoped>
    .info-bar{
        color: white;
        font-size: 16px;
        padding-left: 10px;
    }
    .info-bar .infobar-item{
        padding: 5px 0;

    }
    .infobar-item .icon-yinfu{
        padding-right: 5px;
        display: block;
    }
    .music-item{
        display: flex;
    }
    .music-item .music-name{
        width: 150px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
    }
     .music-item .music-name span{
         display: inline-block;
         animation: scroll 5s linear infinite;
     }
     .music-item .music-name span::after{
         content: attr(data-text);
         margin-left: 30px;
     }
     @keyframes scroll{
         from{
             transform: translate(0);
         }
         to{
             transform: translate(calc(-50% - 20px));
         }
     }
</style>>
